Objects Reference

boundbox::add_point

Prototype

void add_point(vector &p)
void add_point(float x,float y,float z)

Parameters

Parameter Type Description
p vector& point to add
x float x coord. of point to add
y float y coord. of point to add
z float z coord. of point to add

Return Value

None

Remarks

This method enlarges the bounding box in order for it to contain the specified point.
When creating a bounbox for a mesh, call the reset method and loop calling this function with all mesh vertices.